class Mahasiswa {

private String nama; //information hiding
private String npm;

protected Manusia(String nama, String alamat); 
{
this.nama = nama;
this.alamat = alamat;
}

public String tampilkanNama() {
return nama;
}

public String tampilkanAlamat() {
return alamat;
}

public void makan() {
System.out.println("\tWelcome To MY LIFE");
}

public void minum() {
System.out.println("||==============================||");
}

public void olahraga() {
System.out.println("\t  GOOD TO GREAT");
}
}
class main {

public static void main(String[] args) {
Mahasiswa itats = new Manusia("AFONSO", "ALAMAT\n");
System.out.println("Nama \t : " + itats.tampilkanNama());
System.out.println("Alamat \t : " + itats.tampilkanAlamat());
itats.makan();
itats.minum();
itats.olahraga();
System.out.println();
}
}
